body {
    max-width: 540px;
    min-width: 320px;
    margin: 0 auto;
    font: 400 16px/1.5 PingFangSC-regular,Tahoma,"Lucida Grande",Verdana,"Microsoft Yahei",STXihei,hei;
    color: #000;
    background-color:#fafafc;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    
}
a {
    text-decoration: none;
    color: #222;
}
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
/* 头部 */
.main {
    position: relative;
    width: 100%;
    height: 215px;
}
.main img {
    width: 100%;
    height:100%;
}
.search {
    position: absolute;
    top: 10px;
    left: 18px;
    width: 80%;
    height: 28px;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.main span {
    display: block;
    width: 35px;
    height: 100%;
    background:url(../images/spirit.png) 15px 7px no-repeat;
    background-size:21px auto;
}
.main .my {
    position: absolute;
    top: 0;
    right: 0;
    height: 44px;
    width: 51px;
    color: #fff;
    font-size: 12px;
    
}
.main .my::before {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    margin: 8px 0 1px 0;
    background: url(../images/spirit.png) 1px -36px no-repeat;
    background-size: 21px auto;
}
/* 局部导航栏 */
.local-nav {
    display: flex;
    height: 64px;
    background-color: #fff;
    margin: 3px 4px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);

}
.local-nav li {
    flex: 1;
}
.local-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
}
span[class^="local-nav-icon"] {
    height: 32px;
    width: 32px;
    margin-top: 5px;
    background: url(../images/spirit-2.png) 0px 0px no-repeat;
    background-size: 40px auto;
}
.local-nav li .local-nav-icon2 {
    background-position: -2px -40px;
}
.local-nav li .local-nav-icon3 {
    background-position: -2px -80px;
}
.local-nav li .local-nav-icon4 {
    background-position: -2px -120px;
}
.local-nav li .local-nav-icon5 {
    background-position: -2px -160px;
}
/* 主导航栏 */
nav {
    /* 上 左右 下 */
    margin: 0 4px 3px;
}
.nav-common {
    display: flex;
    height: 88px;
    background-color: pink;
    border-radius: 8px;
}
.nav-common:nth-child(2) {
    margin: 3px 0;
}
.nav-items {
    display: flex;
    flex: 1;
    flex-direction: column;
}
.nav-items a {
    flex: 1;
    text-align: center;
    line-height: 44px;
    color: #fff;
    font-size: 14px;
    text-shadow: 1px 1px rgba(0,0,0,.2);

}
.nav-items a:nth-child(1) {
    border-bottom: 1px solid #fff;
}
.nav-items:nth-child(1) a {
    border: 0;
    /* bottom靠底端对齐 center水平居中 */
    background: url(../images/jiudian.png) no-repeat bottom center;

}
.nav-items:nth-child(-n+2) {
    border-right: 1px solid #fff;
}
.nav-common:nth-child(1){
    background: -webkit-linear-gradient(left,#fa5a55,#fa994d);
}
.nav-common:nth-child(2){
    background: -webkit-linear-gradient(left,#4b90ed,#53bced);
}

.nav-common:nth-child(3){
    background: -webkit-linear-gradient(left,#34c2a9,#6cd559);
}
/* 侧导航栏 */
.subnav-entry {
    display: flex;
    flex-wrap: wrap;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    margin: 3px 3px;
}
.subnav-entry li {
    flex: 20%;
}
.subnav-entry a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
}
span[class^="subnav-entry-icon"] {
    height: 28px;
    width: 28px;
    background-color: pink;
    background: url(../images/spirit3.png) 0 0 no-repeat;
    background-size: 28px auto
}
.subnav-entry .subnav-entry-icon2 {
    background-position: 0 -29px;
}
.subnav-entry .subnav-entry-icon3 {
    background-position: 0 -58px;
}
.subnav-entry .subnav-entry-icon4 {
    background-position: 0 -87px;
}
.subnav-entry .subnav-entry-icon5 {
    background-position: 0 -116px;
}
.subnav-entry .subnav-entry-icon6 {
    background-position: 0 -145px;
}
.subnav-entry .subnav-entry-icon7 {
    background-position: 0 -173px;
}
.subnav-entry .subnav-entry-icon8 {
    background-position: 0 -200px;
}
.subnav-entry .subnav-entry-icon9 {
    background-position: 0 -226px;
}
.subnav-entry .subnav-entry-icon10 {
    background-position: 0 -255px;
}
/* footer部分 */
.footer{
    display: flex;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    border-top: 1px solid #ccc;
    margin: 4px;
}
.footer li {
    flex: 1;
    padding: 20px;
    text-align: center;
}
.end p{
    text-align: center;
    color: #ccc;
    font-size: 16px;
}
.end h5 {
    text-align: center;
    color: #ccc;
    font-size: 14px;
    font-weight: normal;
}